package com.java.base.javabase.localDateTime;

import java.time.Clock;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @ClassName LocalDateTimeDemo
 * @Author FangShanShan
 * @Description JDK8的localDateTime用法
 * @Date 2020/7/11 18:24
 */
public class LocalDateTimeDemo {

    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        System.out.println(now);
        LocalTime time = LocalTime.now();
        System.out.println(time);
        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println(dateTime);
    }

}